package com.eh.facade;

import com.eh.facade.facade.TheaterFacade;
import com.eh.facade.facade.impl.HomeTheaterFacade;
import com.eh.facade.model.Amplifier;
import com.eh.facade.model.DvdPlayer;
import com.eh.facade.model.PopcornPopper;
import com.eh.facade.model.Projector;

/**
 * Created by David on 2016/4/30.
 */
public class HomeTheaterTestDrive {
    public static void main(String[] args) {
        TheaterFacade homeTheaterFacade = new HomeTheaterFacade.Builder()
                .popcornPoper(new PopcornPopper()).projector(new Projector())
                .amplifier(new Amplifier()).dvdPlayer(new DvdPlayer()).build();

        homeTheaterFacade.watchMovie();
    }
}
